package com.luoran.bartalks.utils;

/**
 * 单据类型的枚举
 * @author Json
 * 2017年12月15日	
 *
 */
public enum EnumBillType {
	
	AREA(1,"区域"),
	
	POSITION(2,"位置"),
	
	CONTAINER(3,"容器"),
	
	CONTAINERTEMPLATE(4,"容器模板"),
	
	TRANSPORTMETHOD(5,"运输方式"), 
	
	PLANTEMPLATE(6,"计划模板"),
	
	PROJECT(7,"项目"),
	
	PLAN(8,"计划"),
	
	PACKINGLIST(9,"箱单");
	
	
	private final Integer value;
	private final String name;

	EnumBillType(Integer value,String name) {
		this.value = value;
		this.name=name;
	}

	public Integer getValue() {
		return this.value;
	}

	public String getName() {
		return this.name;
	}
	
	 public static EnumBillType getByValue(int value) {  
         for (EnumBillType enumBillType : values()) {  
             if (enumBillType.getValue() == value) {  
                 return enumBillType;  
             }  
         }  
         return null;  
     }  
	
	 
}
